<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 1.初次页面，需要调起授权页面
        const config = {
            appid: "wx27098251bf9659d0",
            appsecret: "69794a64b3e4bb6bc478f447fbb6d7ab",
            userInfo_redirect_url: "http://wanfeng-cn.gnway.cc",
            uuid: "111"
        }
        let backUrl = encodeURIComponent(config.userInfo_redirect_url)
        let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${config.appid}&redirect_uri=${backUrl}&response_type=code&scope=snsapi_userinfo&state=${config.uuid}#wechat_redirect`
        window.location.href = url;
    </script>
</body>
</html>

